package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.HotelAssessMapper;
import com.zking.ssm.model.HotelAssess;
import com.zking.ssm.service.IHotelAssessService;
import com.zking.ssm.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotelAssessServiceImpl implements IHotelAssessService {
    @Autowired
    private HotelAssessMapper hotelAssessMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelAssessMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelAssess record) {
        return hotelAssessMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelAssess record) {
        return hotelAssessMapper.insertSelective(record);
    }

    @Override
    public HotelAssess selectByPrimaryKey(Integer id) {
        return hotelAssessMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelAssess record) {
        return hotelAssessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(HotelAssess record) {
        return hotelAssessMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(HotelAssess record) {
        return hotelAssessMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelAssess> SelectAll(HotelAssess hotelAssess, PageBean pageBean) {
        return hotelAssessMapper.SelectAll(hotelAssess);
    }


}
